import axios from '@/libs/request'

/*
管理端登录接口
 */
export const login = ({ userName, password }) => {
  const data = JSON.stringify({
    username: userName,
    password: password
  })
  return axios.request({
    url: '/api/uc/sc/loginService/userLogin',
    data: data,
    type: 'post'
  })
}
export const getUserInfo = () => {
  return axios.request({
    url: '/api/as/info',
    method: 'post',
    data: { a: 1 }
  })
}
export const getJavaMenus = (menu_id) => {
  return axios.request({
    url: '/api/ac/sc/menuService/getVueMenuList',
    data: { menu_id: menu_id },
    type: 'get'
  })
}
export const getPhpMenus = () => {
  return axios.request({
    url: '/wl/menus',
    type: 'get',
    php: true
  })
}
// 小额消费
export const getSpvTransactionsByBatchList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvTransactionsService/getSpvTransactionsByBatchList',
    data: data,
    type: 'post'
  })
}
// 汽柴油混加
export const getSpvTransactionsByTypeList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvTransactionsService/getSpvTransactionsByTypeList',
    data: data,
    type: 'post'
  })
}
// 超量加油
export const getSpvTransactionsByFuelList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvTransactionsService/getSpvTransactionsByFuelList',
    data: data,
    type: 'post'
  })
}
// 异地加油
export const getSpvTransactionsByAoList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvTransactionsService/getSpvTransactionsByAoList',
    data: data,
    type: 'post'
  })
}
// 多次加油
export const getSpvTransactionsBynumList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvTransactionsService/getSpvTransactionsBynumList',
    data: data,
    type: 'post'
  })
}
// 数据导入
export const savewhiteList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/excelService/saveTransactions',
    data: data,
    type: 'post'
  })
}
// 预警信息
export const getSumMoneyList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvTransactionsService/getSumMoneyList',
    data: data,
    type: 'post'
  })
}
// 公示
export const getSpvTransactionsGSList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvTransactionsService/getSpvTransactionsGSList',
    data: data,
    type: 'post'
  })
}// 睡眠
export const getSpvOilcompaniesList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvTransactionsService/getSpvOilcompaniesByshuiList',
    data: data,
    type: 'post'
  })
}// 截留卡
export const getSpvOilcardhandlingByjieList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvTransactionsService/getSpvOilcardhandlingByjieList',
    data: data,
    type: 'post'
  })
}
// 核查信息列表(不可用)
export const getSpvcheckList = (data) => {
  return axios.request({
    url: '/api/as/jcar/Spvcheck/getSpvcheckList',
    data: data,
    type: 'post'
  })
}
// 核查信息增改(不可用)
export const insertSpvcheck = (data) => {
  return axios.request({
    url: '/api/as/jcar/Spvcheck/insertSpvcheck',
    data: data,
    type: 'post'
  })
}
// 车辆信息列表
export const getSpvVehicleList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvVehicleService/getSpvVehicleList',
    data: data,
    type: 'post'
  })
}
// 加油流水列表
export const getSpvTransactionsList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvTransactionsService/getSpvTransactionsList',
    data: data,
    type: 'post'
  })
}
// 办卡记录列表
export const banKaList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvOilcompaniesService/getSpvOilcompaniesList',
    data: data,
    type: 'post'
  })
}
// 日常记录列表
export const getSpvUnitvehicleList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvUnitvehicleService/getSpvUnitvehicleList',
    data: data,
    type: 'post'
  })
}
// 办卡情况列表
export const bkqkList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvOilcardhandlingService/getSpvOilcardhandlingList',
    data: data,
    type: 'post'
  })
}
// 节假日加油
export const getSpvTransactionsByDayList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvTransactionsService/getSpvTransactionsByDayList',
    data: data,
    type: 'post'
  })
}
// 总金额统计
export const getCountNum = (data) => {
  return axios.request({
    url: '/api/ac/jcar/countFirstService/getCountNum',
    data: data,
    type: 'post'
  })
}
// 柴油汽油统计
export const getCountTypeList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/countFirstService/getCountTypeList',
    data: data,
    type: 'post'
  })
}
// 单位统计
export const getCountcompanyList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/countFirstService/getCountcompanyList',
    data: data,
    type: 'post'
  })
}
// 单位问题统计
export const getCountProblemList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/countFirstService/GetqiList',
    data: data,
    type: 'post'
  })
}
// 车辆情况
export const getCountCarTypeList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/countFirstService/getCountCarTypeList',
    data: data,
    type: 'post'
  })
}
// 节假日日期列表
export const getSpvHolidaynameList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvHolidaynameService/getSpvHolidaynameList',
    data: data,
    type: 'post'
  })
}

// 删除所有节假日日期数据
export const deleteSpvHolidayname = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvHolidaynameService/deleteSpvHolidayname',
    data: data,
    type: 'post'
  })
}

// 删除所有加油流水数据
export const deleteSpvTransactions = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvTransactionsService/deleteSpvTransactions',
    data: data,
    type: 'post'
  })
}

// 删除所有办卡情况数据
export const deleteSpvOilcardhandling = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvOilcardhandlingService/deleteSpvOilcardhandling',
    data: data,
    type: 'post'
  })
}

// 删除所有办卡记录数据
export const deleteSpvOilcompanies = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvOilcompaniesService/deleteSpvOilcompanies',
    data: data,
    type: 'post'
  })
}

// 删除所有日常记录数据
export const deleteSpvUnitvehicle = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvUnitvehicleService/deleteSpvUnitvehicle',
    data: data,
    type: 'post'
  })
}

// 删除所有车辆信息数据
export const deleteSpvVehicle = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvVehicleService/deleteSpvVehicle',
    data: data,
    type: 'post'
  })
}
// 一日多次加油详细信息
export const getSpvTransactionsByCountList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvTransactionsService/getSpvTransactionsByCountList',
    data: data,
    type: 'post'
  })
}
// 涉及资金
export const getCountList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/countFirstService/getCountList',
    data: data,
    type: 'post'
  })
}
// 导出周六日加油
export const getExportSpvTransactionsByDayList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/exportService/getExportSpvTransactionsByDayList',
    data: data,
    type: 'post'
  })
}
// 导出超量加油
export const getExportSpvTransactionsByFuelList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/exportService/getExportSpvTransactionsByFuelList',
    data: data,
    type: 'post'
  })
}
// 导出多次加油
export const getExportSpvTransactionsBynumList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/exportService/getExportSpvTransactionsBynumList',
    data: data,
    type: 'post'
  })
}
// 一日多次详细查询
export const getExportSpvTransactionsByCountList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvTransactionsService/getSpvTransactionsByCountList',
    data: data,
    type: 'post'
  })
}
// 导出异地加油
export const getExportSpvTransactionsByAoList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/exportService/getExportSpvTransactionsByAoList',
    data: data,
    type: 'post'
  })
}
// 导出小额消费
export const getExportSpvTransactionsByBatchList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/exportService/getExportSpvTransactionsByBatchList',
    data: data,
    type: 'post'
  })
}
// 导出汽柴混加
export const getExportSpvTransactionsByTypeList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/exportService/getExportSpvTransactionsByTypeList',
    data: data,
    type: 'post'
  })
}
// 导出截留卡
export const getExportSpvOilcardhandlingByjieList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/exportService/getExportSpvOilcardhandlingByjieList',
    data: data,
    type: 'post'
  })
}
// 导出睡眠卡
export const getExportSpvOilcompaniesByshuiList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/exportService/getExportSpvOilcompaniesByshuiList',
    data: data,
    type: 'post'
  })
}
// 每年资金统计 柱状折线图
export const getMoneyYearList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/countFirstService/getMoneyYearList',
    data: data,
    type: 'post'
  })
}
// 前六个问题
export const getProblemNameList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/countFirstService/getProblemNameList',
    data: data,
    type: 'post'
  })
}
// 高标号燃油
export const getSpvTransactionsByMySeeList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/jySpvTransactionsService/getSpvTransactionsByMySeeList',
    data: data,
    type: 'post'
  })
}
// 高标号燃油导出
export const getExportSpvTransactionsByMySeeList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/exportService/getExportSpvTransactionsByMySeeList',
    data: data,
    type: 'post'
  })
}
// 导出总表
export const dczb = (data) => {
  return axios.request({
    url: '/api/ac/jcar/statisticsService/getCountList',
    data: data,
    type: 'post'
  })
}
// 删除总表
export const deleteAll = (data) => {
  return axios.request({
    url: '/api/ac/jcar/statisticsService/deleteAll',
    data: data,
    type: 'post'
  })
}
// 导出总表详情
export const getCountAllList = (data) => {
  return axios.request({
    url: '/api/ac/jcar/statisticsService/getCountAllList',
    data: data,
    type: 'post'
  })
}
// 总数
export const selectAllT = (data) => {
  return axios.request({
    url: '/api/ac/jcar/statisticsService/selectAllT',
    data: data,
    type: 'post'
  })
}
// 删除
export const deletechaiAll = (data) => {
  return axios.request({
    url: '/api/ac/jcar/statisticsService/deletechaiAll',
    data: data,
    type: 'post'
  })
}
// 添加总表
export const insertAll = (data) => {
  return axios.request({
    url: '/api/ac/jcar/statisticsService/insertAll',
    data: data,
    type: 'post'
  })
}
